package com.geyue.core.service;

import com.geyue.common.base.service.BaseService;
import com.geyue.common.toolbox.result.Res;
import com.geyue.core.model.Integral;

import java.util.List;

/**
 * Created by Lyon on 2017/3/27.
 */
public interface IntegralService extends BaseService<Integral> {

    List<Integral> orderByTime(Integer uid,Integer year,Integer quarter);

    /**
     * 兑换礼物
     * @param integral
     * @return
     */
    Res exchange(Integral integral);

    /**
     * 领取积分
     * @param quarter
     * @return
     */
    Res receive(Integer year,Integer quarter,Integer uid);

    Res pageList(Integer pageNum,Integer pageSize);
}
